<template>
   <div id="containerNow">
      <div id="container"></div>
   </div>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue'
import { Graph, Cell, CellView, Node } from '@antv/x6'
// import { redo } from 'simplemde'
import { useRouter } from 'vue-router'
import { post } from '@/api/http'
const data = [
   {
      "id": "1",
      "shape": "lane",
      "width": 950,
      "height": 810,
      "position": {
         "x": 0,
         "y": 0
      },
      "label": "五金制具仓",
   },
   {
      "id": "2",
      "shape": "laneTow",
      "width": 300,
      "height": 810,
      "position": {
         "x": 950,
         "y": 0
      },
      "label": "采购管理",
   },
   {
      "id": "3",
      "shape": "laneThree",
      "width": 500,
      "height": 810,
      "position": {
         "x": 1250,
         "y": 0
      },
      "label": "产品管理",
   },
   {
      "id": "4",
      "shape": "laneFour",
      "width": 600,
      "height": 810,
      "position": {
         "x": 1750,
         "y": 0
      },
      "label": "织布单管理",
   },
   {
      "id": "5",
      "shape": "laneFive",
      "width": 200,
      "height": 810,
      "position": {
         "x": 2350,
         "y": 0
      },
      "label": "原料仓",
   },
   {
      "id": "6",
      "shape": "laneSix",
      "width": 800,
      "height": 810,
      "position": {
         "x": 2550,
         "y": 0
      },
      "label": "生产管理",
   },
   {
      "id": "7",
      "shape": "laneSeven",
      "width": 500,
      "height": 810,
      "position": {
         "x": 3350,
         "y": 0
      },
      "label": "质量管理",
   },
   {
      "id": "8",
      "shape": "laneEight",
      "width": 1150,
      "height": 810,
      "position": {
         "x": 3850,
         "y": 0
      },
      "label": "坯布仓",
   },
   {
      "id": "9",
      "shape": "laneNine",
      "width": 450,
      "height": 810,
      "position": {
         "x": 5000,
         "y": 0
      },
      "label": "次布仓",
   },
   {
      "id": "10",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 530,
         "y": 50
      },
      "label": "出库",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '1'
   },
   {
      "id": "11",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 650,
         "y": 60
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "12",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 740,
         "y": 50
      },
      "label": "领料单待处理",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '1'
   },
   {
      "id": "13",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 870,
         "y": 50
      },
      "label": "新增领料单",
      "parent": "1",
      "urlClick": '/wh/HardwarePicking',
      "urlQuery": ''
   },
   {
      "id": "14",
      "shape": "lane-edge",
      "source": "13",
      "target": "12"
   },
   {
      "id": "15",
      "shape": "lane-edge",
      "source": "12",
      "target": "11"
   },
   {
      "id": "16",
      "shape": "lane-edge",
      "source": "11",
      "target": "10"
   },
   {
      "id": "17",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 740,
         "y": 110
      },
      "label": "采购单待处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '1'
   },
   {
      "id": "18",
      "shape": "lane-rect",
      "width": 95,
      "height": 35,
      "position": {
         "x": 670,
         "y": 180
      },
      "label": "五金调拨单待处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '1'
   },
   {
      "id": "19",
      "shape": "lane-rect",
      "width": 95,
      "height": 35,
      "position": {
         "x": 760,
         "y": 340
      },
      "label": "制具调拨单待处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '1'
   },
   {
      "id": "20",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 730,
         "y": 470
      },
      "label": "已处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '1'
   },
   {
      "id": "21",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 650,
         "y": 570
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "22",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 790,
         "y": 720
      },
      "label": "五金仓库存",
      "parent": "1",
      "urlClick": '/wh/Nventory',
      "urlQuery": '1'
   },
   {
      "id": "23",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 900,
         "y": 200
      },
      "label": "入库",
      "parent": "1",
   },
   {
      "id": "24",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 880,
         "y": 410
      },
      "label": "入库",
      "parent": "1",
   },
   {
      "id": "25",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 860,
         "y": 570
      },
      "label": "入库",
      "parent": "1",
   },
   {
      "id": "26",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 60,
      "position": {
         "x": 490,
         "y": 120
      },
      "label": "采购换货单审核",
      "parent": "1",
   },
   {
      "id": "27",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 560,
         "y": 240
      },
      "label": "采购退货",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '1'
   },
   {
      "id": "28",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 500,
         "y": 300
      },
      "label": "新增换货",
      "parent": "1",
   },
   {
      "id": "29",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 620,
         "y": 300
      },
      "label": "新增退货",
      "parent": "1",
   },
   {
      "id": "30",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 570,
         "y": 380
      },
      "label": "已处理",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '1'
   },
   {
      "id": "31",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 570,
         "y": 500
      },
      "label": "采购退货审核",
      "parent": "1",
   },
   {
      "id": "32",
      "shape": "lane-rect3",
      "width": 60,
      "height": 35,
      "position": {
         "x": 570,
         "y": 600
      },
      "label": "退货",
      "attrs": {
         "body": {
            "rx": 20,
            "ry": 20
         }
      },
      "parent": "1",
   },
   {
      "id": "33",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 480,
         "y": 730
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "34",
      "shape": "lane-rect",
      "width": 60,
      "height": 35,
      "position": {
         "x": 400,
         "y": 630
      },
      "label": "新建调拨",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '1'
   },
   {
      "id": "35",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 390,
         "y": 310
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "36",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 300,
         "y": 680
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "37",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 380,
         "y": 190
      },
      "label": "入库",
      "parent": "1",
   },
   {
      "id": "38",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 320,
         "y": 350
      },
      "label": "入库",
      "parent": "1",
   },
   {
      "id": "39",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 280,
         "y": 440
      },
      "label": "入库",
      "parent": "1",
   },
   {
      "id": "40",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 120,
         "y": 50
      },
      "label": "制具调拨单待处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '2'
   },
   {
      "id": "41",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 170,
         "y": 150
      },
      "label": "五金调拨单待处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '2'
   },
   {
      "id": "42",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 100,
         "y": 240
      },
      "label": "车间退料入库",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '2'
   },
   {
      "id": "43",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 60,
         "y": 410
      },
      "label": "新建入库单",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '2'
   },
   {
      "id": "44",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 200,
         "y": 500
      },
      "label": "已处理",
      "parent": "1",
      "urlClick": '/wh/Receipt',
      "urlQuery": '2'
   },
   {
      "id": "45",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 100,
         "y": 530
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "46",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 160,
         "y": 650
      },
      "label": "制具仓库存",
      "parent": "1",
      "urlClick": '/wh/Nventory',
      "urlQuery": '2'
   },
   {
      "id": "47",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 90,
         "y": 740
      },
      "label": "新建调拨单",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '2'
   },
   {
      "id": "48",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 0,
         "y": 50
      },
      "label": "新增出库单",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '2'
   },
   {
      "id": "49",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 0,
         "y": 160
      },
      "label": "审核",
      "parent": "1",
   },
   {
      "id": "50",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 0,
         "y": 260
      },
      "label": "出库",
      "parent": "1",
      "urlClick": '/wh/Order',
      "urlQuery": '2'
   },
   {
      "id": "51",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 3,
         "y": 350
      },
      "label": "借出",
      "parent": "1",
   },
   {
      "id": "52",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 10,
         "y": 580
      },
      "label": "新增针盘",
      "parent": "1",
      "urlClick": '/wh/Nventory',
      "urlQuery": '2'
   },
   {
      "id": "53",
      "shape": "lane-edge",
      "source": "48",
      "target": "49"
   },
   {
      "id": "54",
      "shape": "lane-edge",
      "source": "49",
      "target": "50"
   },
   {
      "id": "56",
      "shape": "lane-edge",
      "source": "52",
      "target": "51"
   },
   {
      "id": "57",
      "shape": "lane-edge",
      "source": "51",
      "target": "42"
   },
   {
      "id": "58",
      "shape": "lane-edge",
      "source": "46",
      "target": "52"
   },
   {
      "id": "59",
      "shape": "lane-edge",
      "source": "45",
      "target": "46"
   },
   {
      "id": "60",
      "shape": "lane-edge",
      "source": "44",
      "target": "45"
   },
   {
      "id": "61",
      "shape": "lane-edge",
      "source": "43",
      "target": "44"
   },
   {
      "id": "62",
      "shape": "lane-edge",
      "source": "42",
      "target": "39"
   },
   {
      "id": "63",
      "shape": "lane-edge",
      "source": "41",
      "target": "38"
   },
   {
      "id": "64",
      "shape": "lane-edge",
      "source": "40",
      "target": "37"
   },
   {
      "id": "65",
      "shape": "lane-edge",
      "source": "36",
      "target": "40"
   },
   {
      "id": "66",
      "shape": "lane-edge",
      "source": "47",
      "target": "36"
   },
   {
      "id": "67",
      "shape": "lane-edge",
      "source": "37",
      "target": "44"
   },
   {
      "id": "68",
      "shape": "lane-edge",
      "source": "38",
      "target": "44"
   },
   {
      "id": "69",
      "shape": "lane-edge",
      "source": "39",
      "target": "44"
   },
   {
      "id": "70",
      "shape": "lane-edge",
      "source": "35",
      "target": "41"
   },
   {
      "id": "71",
      "shape": "lane-edge",
      "source": "34",
      "target": "35"
   },
   {
      "id": "72",
      "shape": "lane-edge",
      "source": "34",
      "target": "33"
   },
   {
      "id": "73",
      "shape": "lane-edge",
      "source": "33",
      "target": "18"
   },
   {
      "id": "74",
      "shape": "lane-edge",
      "source": "31",
      "target": "32"
   },
   {
      "id": "75",
      "shape": "lane-edge",
      "source": "30",
      "target": "31"
   },
   {
      "id": "76",
      "shape": "lane-edge",
      "source": "28",
      "target": "30"
   },
   {
      "id": "77",
      "shape": "lane-edge",
      "source": "29",
      "target": "30"
   },
   {
      "id": "78",
      "shape": "lane-edge",
      "source": "27",
      "target": "30"
   },
   {
      "id": "79",
      "shape": "lane-edge",
      "source": "27",
      "target": "29"
   },
   {
      "id": "80",
      "shape": "lane-edge",
      "source": "28",
      "target": "26"
   },
   {
      "id": "81",
      "shape": "lane-edge",
      "source": "26",
      "target": "17"
   },
   {
      "id": "82",
      "shape": "lane-edge",
      "source": "36",
      "target": "19"
   },
   {
      "id": "83",
      "shape": "lane-edge",
      "source": "17",
      "target": "23"
   },
   {
      "id": "84",
      "shape": "lane-edge",
      "source": "18",
      "target": "24"
   },
   {
      "id": "85",
      "shape": "lane-edge",
      "source": "19",
      "target": "25"
   },
   {
      "id": "86",
      "shape": "lane-edge",
      "source": "23",
      "target": "20"
   },
   {
      "id": "87",
      "shape": "lane-edge",
      "source": "24",
      "target": "20"
   },
   {
      "id": "88",
      "shape": "lane-edge",
      "source": "25",
      "target": "20"
   },
   {
      "id": "89",
      "shape": "lane-edge",
      "source": "20",
      "target": "21"
   },
   {
      "id": "90",
      "shape": "lane-edge",
      "source": "21",
      "target": "22"
   },
   {
      "id": "91",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 50
      },
      "label": "新建需求单",
      "parent": "2",
      "urlClick": '/pcsingmagent/orderpurchase',
      "urlQuery": '1'
   },
   {
      "id": "92",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 150
      },
      "label": "需求单审核",
      "parent": "2",
      "urlClick": '/pcsingmagent/orderpurchase',
      "urlQuery": '2'
   },
   {
      "id": "93",
      "shape": "lane-polygon3",
      "width": 70,
      "height": 40,
      "position": {
         "x": 1000,
         "y": 250
      },
      "label": "需求单",
      "parent": "2",
   },
   {
      "id": "94",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 350
      },
      "label": "创建申购单",
      "parent": "2",
      "urlClick": '/pcsingmagent/Purchase',
      "urlQuery": '1'
   },
   {
      "id": "95",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 450
      },
      "label": "申购单审核",
      "parent": "2",
      "urlClick": '/pcsingmagent/Purchase',
      "urlQuery": '2'
   },
   {
      "id": "96",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 550
      },
      "label": "创建采购单",
      "parent": "2",
      "urlClick": '/pcsingmagent/PurchaseCg',
      "urlQuery": '1'
   },
   {
      "id": "97",
      "shape": "lane-rect",
      "width": 80,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 650
      },
      "label": "采购单审核",
      "parent": "2",
      "urlClick": '/pcsingmagent/PurchaseCg',
      "urlQuery": '2'
   },
   {
      "id": "98",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1000,
         "y": 750
      },
      "label": "采购单进度查询",
      "parent": "2",
      "urlClick": '/pcsingmagent/PurchaseCg',
      "urlQuery": '4'
   },
   {
      "id": "99",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1140,
         "y": 340
      },
      "label": "创建申购单",
      "parent": "2",
      "urlClick": '/pcsingmagent/Purchase',
      "urlQuery": '1'
   },
   {
      "id": "100",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1140,
         "y": 470
      },
      "label": "申购单反审",
      "parent": "2",
      "urlClick": '/pcsingmagent/Purchase',
      "urlQuery": '3'
   },
   {
      "id": "101",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1140,
         "y": 590
      },
      "label": "采购单反审",
      "parent": "2",
      "urlClick": '/pcsingmagent/PurchaseCg',
      "urlQuery": '3'
   },
   {
      "id": "102",
      "shape": "lane-edge",
      "source": "97",
      "target": "17"
   },
   {
      "id": "103",
      "shape": "lane-edge",
      "source": "91",
      "target": "92"
   },
   {
      "id": "104",
      "shape": "lane-edge",
      "source": "92",
      "target": "93"
   },
   {
      "id": "105",
      "shape": "lane-edge",
      "source": "93",
      "target": "94"
   },
   {
      "id": "106",
      "shape": "lane-edge",
      "source": "94",
      "target": "95"
   },
   {
      "id": "107",
      "shape": "lane-edge",
      "source": "95",
      "target": "96"
   },
   {
      "id": "108",
      "shape": "lane-edge",
      "source": "96",
      "target": "97"
   },
   {
      "id": "109",
      "shape": "lane-edge",
      "source": "97",
      "target": "98"
   },
   {
      "id": "110",
      "shape": "lane-edge",
      "source": "99",
      "target": "94"
   },
   {
      "id": "111",
      "shape": "lane-edge",
      "source": "95",
      "target": "100"
   },
   {
      "id": "112",
      "shape": "lane-edge",
      "source": "96",
      "target": "101"
   },
   {
      "id": "113",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1280,
         "y": 130
      },
      "label": "产品管理",
      "parent": "3",
   },
   {
      "id": "114",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1280,
         "y": 400
      },
      "label": "产品工艺",
      "parent": "3",
      "urlClick": '/product/ProductManagement',
      "urlQuery": ''
   },
   {
      "id": "115",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1440,
         "y": 80
      },
      "label": "基础资料",
      "parent": "3",
      "urlClick": '/product/RawMaterialInformation',
      "urlQuery": ''
   },
   {
      "id": "116",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1440,
         "y": 180
      },
      "label": "原料列表",
      "parent": "3",
      "urlClick": '/product/ProductManagement',
      "urlQuery": '1'
   },
   {
      "id": "117",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1520,
         "y": 370
      },
      "label": "坯布列表",
      "parent": "3",
      "urlClick": '/product/ProductManagement',
      "urlQuery": '3'
   },
   {
      "id": "118",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1340,
         "y": 650
      },
      "label": "商品列表",
      "parent": "3",
      "urlClick": '/product/ProductManagement',
      "urlQuery": '2'
   },
   {
      "id": "119",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 1660,
         "y": 270
      },
      "label": "审核",
      "parent": "3",
   },
   {
      "id": "120",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 1650,
         "y": 480
      },
      "label": "审核",
      "parent": "3",
   },
   {
      "id": "121",
      "shape": "lane-edge",
      "source": "113",
      "target": "115"
   },
   {
      "id": "122",
      "shape": "lane-edge",
      "source": "113",
      "target": "114"
   },
   {
      "id": "123",
      "shape": "lane-edge",
      "source": "114",
      "target": "116"
   },
   {
      "id": "124",
      "shape": "lane-edge",
      "source": "114",
      "target": "118"
   },
   {
      "id": "125",
      "shape": "lane-edge",
      "source": "116",
      "target": "119"
   },
   {
      "id": "126",
      "shape": "lane-edge",
      "source": "119",
      "target": "117"
   },
   {
      "id": "127",
      "shape": "lane-edge",
      "source": "117",
      "target": "120"
   },
   {
      "id": "128",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1750,
         "y": 190
      },
      "label": "新增织布单",
      "parent": "4",
      "urlClick": '/processrowfactory/newschedulelist',
      "urlQuery": '1'
   },
   {
      "id": "129",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1830,
         "y": 310
      },
      "label": "织布单列表",
      "parent": "4",
      "urlClick": '/processrowfactory/newschedulelist',
      "urlQuery": ''
   },
   {
      "id": "130",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1860,
         "y": 450
      },
      "label": "织布单变更",
      "parent": "4",
      "urlClick": '/processrowfactory/newschedulelist',
      "urlQuery": '0'
   },
   {
      "id": "131",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 1770,
         "y": 540
      },
      "attrs": {
         "body": {
            "rx": 20,
            "ry": 20
         }
      },
      // "urlClick":'///',
      "label": "完结",
      "parent": "4",
   },
   {
      "id": "132",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 1960,
         "y": 360
      },
      "label": "提交",
      "parent": "4",
   },
   {
      "id": "133",
      "shape": "lane-rectTow",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2030,
         "y": 400
      },
      "label": "增补需求单",
      "parent": "4",
   },
   {
      "id": "134",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2030,
         "y": 600
      },
      "attrs": {
         "body": {
            "rx": 20,
            "ry": 20
         }
      },
      // "urlClick":'///',
      "label": "驳回",
      "parent": "4",
   },
   {
      "id": "135",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2200,
         "y": 100
      },
      "label": "打印布飞",
      "parent": "4",
      "urlClick": '/processrowfactory/planplant',
      "urlQuery": '2'
   },
   {
      "id": "136",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2200,
         "y": 200
      },
      "label": "织布单排产",
      "parent": "4",
      "urlClick": '/processrowfactory/planplant',
      "urlQuery": '1'
   },
   {
      "id": "137",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 2210,
         "y": 310
      },
      "label": "排产",
      "parent": "4",
   },
   {
      "id": "138",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2200,
         "y": 410
      },
      "label": "排产查询",
      "parent": "4",
      "urlClick": '/processrowfactory/setingSelect',
      "urlQuery": ''
   },
   {
      "id": "139",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2200,
         "y": 510
      },
      "label": "开需求单",
      "parent": "4",
      "urlClick": '/processrowfactory/requisizione',
      "urlQuery": '1'
   },
   {
      "id": "140",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2200,
         "y": 610
      },
      "label": "开领料单",
      "parent": "4",
      "urlClick": '/processrowfactory/requisizione',
      "urlQuery": '2'
   },
   {
      "id": "141",
      "shape": "lane-polygon3",
      "width": 40,
      "height": 40,
      "position": {
         "x": 2210,
         "y": 710
      },
      "label": "审核",
      "parent": "4",
   },
   {
      "id": "142",
      "shape": "lane-edge",
      "source": "120",
      "target": "128"
   },
   {
      "id": "143",
      "shape": "lane-edge",
      "source": "128",
      "target": "129"
   },
   {
      "id": "144",
      "shape": "lane-edge",
      "source": "129",
      "target": "130"
   },
   {
      "id": "145",
      "shape": "lane-edge",
      "source": "129",
      "target": "131"
   },
   {
      "id": "146",
      "shape": "lane-edge",
      "source": "129",
      "target": "131"
   },
   {
      "id": "147",
      "shape": "lane-edge",
      "source": "129",
      "target": "132"
   },
   {
      "id": "148",
      "shape": "lane-edge",
      "source": "130",
      "target": "132"
   },
   {
      "id": "149",
      "shape": "lane-edge",
      "source": "132",
      "target": "136"
   },
   {
      "id": "150",
      "shape": "lane-edge",
      "source": "136",
      "target": "135"
   },
   {
      "id": "151",
      "shape": "lane-edge",
      "source": "136",
      "target": "137"
   },
   {
      "id": "152",
      "shape": "lane-edge",
      "source": "137",
      "target": "138"
   },
   {
      "id": "153",
      "shape": "lane-edge",
      "source": "138",
      "target": "139"
   },
   {
      "id": "154",
      "shape": "lane-edge",
      "source": "139",
      "target": "140"
   },
   {
      "id": "155",
      "shape": "lane-edge",
      "source": "140",
      "target": "141"
   },
   {
      "id": "156",
      "shape": "lane-edge",
      "source": "138",
      "target": "133"
   },
   {
      "id": "157",
      "shape": "lane-edge",
      "source": "140",
      "target": "134"
   },
   {
      "id": "158",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2400,
         "y": 100
      },
      "label": "原料入库",
      "parent": "5",
      "urlClick": '/wh/Receipt',
      "urlQuery": '3'
   },
   {
      "id": "159",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2400,
         "y": 200
      },
      "label": "原纱仓退料入库",
      "parent": "5",
      "urlClick": '/wh/Receipt',
      "urlQuery": '3'
   },
   {
      "id": "160",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2400,
         "y": 600
      },
      "label": "原料仓出库",
      "parent": "5",
      "urlClick": '/wh/Order',
      "urlQuery": '3'
   },
   {
      "id": "161",
      "shape": "lane-polygon3",
      "width": 80,
      "height": 40,
      "position": {
         "x": 2410,
         "y": 710
      },
      "label": "原料仓审核",
      "parent": "5",
   },
   {
      "id": "162",
      "shape": "lane-edge",
      "source": "141",
      "target": "161"
   },
   {
      "id": "163",
      "shape": "lane-edge",
      "source": "161",
      "target": "160"
   },
   {
      "id": "164",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2570,
         "y": 30
      },
      "label": "值机派工",
      "parent": "6",
      "urlClick": '/productionmanagement/checkdispatching',
      "urlQuery": '1'
   },
   {
      "id": "165",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 2570,
         "y": 110
      },
      "label": "值机班长确定",
      "parent": "6",
   },
   {
      "id": "166",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2570,
         "y": 210
      },
      "label": "调机派工",
      "parent": "6",
      "urlClick": '/productionmanagement/checkdispatching',
      "urlQuery": '2'
   },
   {
      "id": "167",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 2570,
         "y": 310
      },
      "label": "调机班长派工",
      "parent": "6",
   },
   {
      "id": "168",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2570,
         "y": 410
      },
      "label": "调机开始",
      "parent": "6",
   },
   {
      "id": "169",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2570,
         "y": 510
      },
      "label": "查布头",
      "parent": "6",
   },
   {
      "id": "170",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2570,
         "y": 610
      },
      "label": "调机待反馈",
      "parent": "6",
   },
   {
      "id": "171",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2570,
         "y": 710
      },
      "label": "交机",
      "parent": "6",
   },
   {
      "id": "172",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 2700,
         "y": 30
      },
      "label": "值机班长派工",
      "parent": "6",
   },
   {
      "id": "173",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2700,
         "y": 130
      },
      "label": "工艺复核",
      "parent": "6",
      "urlClick": '/FirstInspectionRecordList/ProcessReview',
      "urlQuery": ''
   },
   {
      "id": "174",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 2700,
         "y": 380
      },
      "label": "查布头OK",
      "parent": "6",
   },
   {
      "id": "175",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2700,
         "y": 500
      },
      "label": "查布头记录列表",
      "parent": "6",
      "urlClick": '/FirstInspectionRecordList/FirstInspectionRecordList',
      "urlQuery": ''
   },
   {
      "id": "176",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2700,
         "y": 680
      },
      "label": "调机记录查询",
      "parent": "6",
      "urlClick": '/productionmanagement/cxadjustmentrecord',
      "urlQuery": ''
   },
   {
      "id": "177",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2830,
         "y": 130
      },
      "label": "值机待反馈",
      "parent": "6",
   },
   {
      "id": "178",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 2830,
         "y": 30
      },
      "label": "提交",
      "parent": "6",
   },
   {
      "id": "179",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2950,
         "y": 30
      },
      "label": "拆纱",
      "parent": "6",
      "urlClick": '/YarnStrippings/YarnStripPingdemos',
      "urlQuery": '1'
   },
   {
      "id": "180",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 2950,
         "y": 130
      },
      "label": "创建拆纱单",
      "parent": "6",
   },
   {
      "id": "181",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2950,
         "y": 230
      },
      "label": "拆纱单分配",
      "parent": "6",
   },
   {
      "id": "182",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2950,
         "y": 330
      },
      "label": "车间退料录入",
      "parent": "6",
   },
   {
      "id": "183",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2950,
         "y": 600
      },
      "label": "车间转料录入",
      "parent": "6",
   },
   {
      "id": "184",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 2950,
         "y": 700
      },
      "label": "损耗布登记",
      "parent": "6",
      "urlClick": '/LossClothRegistration/LossClothRegistration',
      "urlQuery": ''
   },
   {
      "id": "185",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 3100,
         "y": 30
      },
      "label": "创建拆纱单",
      "parent": "6",
   },
   {
      "id": "186",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3240,
         "y": 30
      },
      "label": "拆纱工录入",
      "parent": "6",
      "urlClick": '/YarnStrippings/YarnStripPingdemos',
      "urlQuery": '2'
   },
   {
      "id": "187",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3240,
         "y": 130
      },
      "label": "落布",
      "parent": "6",
   },
   {
      "id": "188",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3240,
         "y": 230
      },
      "label": "车间退料明细",
      "parent": "6",
      "urlClick": '/WorkshopMaterialReturn/WorkshopMaterialReturn',
      "urlQuery": '1'
   },
   {
      "id": "189",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 3240,
         "y": 330
      },
      "label": "创建退料单",
      "parent": "6",
   },
   {
      "id": "190",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3240,
         "y": 430
      },
      "label": "车间退料汇总",
      "parent": "6",
      "urlClick": '/WorkshopMaterialReturn/WorkshopMaterialReturn',
      "urlQuery": '2'
   },
   {
      "id": "191",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3240,
         "y": 580
      },
      "attrs": {
         "body": {
            "rx": 20,
            "ry": 20
         }
      },
      // "urlClick":'///',
      "label": "车间转料查询",
      "parent": "6",
      "urlClick": '/WorkshopMaterialTransfer/WorkshopMaterialTransfer',
      "urlQuery": ''
   },
   {
      "id": "192",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3240,
         "y": 680
      },
      "attrs": {
         "body": {
            "rx": 20,
            "ry": 20
         }
      },
      // "urlClick":'///',
      "label": "损耗布登记",
      "parent": "6",
      "urlClick": '/LossClothRegistration/LossClothRegistration',
      "urlQuery": ''
   },
   {
      "id": "193",
      "shape": "lane-edge",
      "source": "164",
      "target": "165"
   },
   {
      "id": "194",
      "shape": "lane-edge",
      "source": "165",
      "target": "166"
   },
   {
      "id": "195",
      "shape": "lane-edge",
      "source": "166",
      "target": "167"
   },
   {
      "id": "196",
      "shape": "lane-edge",
      "source": "167",
      "target": "168"
   },
   {
      "id": "197",
      "shape": "lane-edge",
      "source": "168",
      "target": "169"
   },
   {
      "id": "198",
      "shape": "lane-edge",
      "source": "169",
      "target": "170"
   },
   {
      "id": "199",
      "shape": "lane-edge",
      "source": "170",
      "target": "171"
   },
   {
      "id": "200",
      "shape": "lane-edge",
      "source": "164",
      "target": "172"
   },
   {
      "id": "210",
      "shape": "lane-edge",
      "source": "172",
      "target": "177"
   },
   {
      "id": "211",
      "shape": "lane-edge",
      "source": "169",
      "target": "175"
   },
   {
      "id": "212",
      "shape": "lane-edge",
      "source": "171",
      "target": "176"
   },
   {
      "id": "213",
      "shape": "lane-edge",
      "source": "175",
      "target": "174"
   },
   {
      "id": "214",
      "shape": "lane-edge",
      "source": "174",
      "target": "173"
   },
   {
      "id": "215",
      "shape": "lane-edge",
      "source": "179",
      "target": "185"
   },
   {
      "id": "216",
      "shape": "lane-edge",
      "source": "185",
      "target": "186"
   },
   {
      "id": "217",
      "shape": "lane-edge",
      "source": "179",
      "target": "180"
   },
   {
      "id": "218",
      "shape": "lane-edge",
      "source": "180",
      "target": "181"
   },
   {
      "id": "219",
      "shape": "lane-edge",
      "source": "186",
      "target": "187"
   },
   {
      "id": "220",
      "shape": "lane-edge",
      "source": "181",
      "target": "187"
   },
   {
      "id": "221",
      "shape": "lane-edge",
      "source": "182",
      "target": "188"
   },
   {
      "id": "222",
      "shape": "lane-edge",
      "source": "188",
      "target": "189"
   },
   {
      "id": "223",
      "shape": "lane-edge",
      "source": "189",
      "target": "190"
   },
   {
      "id": "224",
      "shape": "lane-edge",
      "source": "183",
      "target": "191"
   },
   {
      "id": "225",
      "shape": "lane-edge",
      "source": "183",
      "target": "191"
   },
   {
      "id": "226",
      "shape": "lane-edge",
      "source": "184",
      "target": "192"
   },
   {
      "id": "227",
      "shape": "lane-edge",
      "source": "190",
      "target": "178"
   },
   {
      "id": "228",
      "shape": "lane-edge",
      "source": "160",
      "target": "179"
   },
   {
      "id": "229",
      "shape": "lane-edge",
      "source": "178",
      "target": "159"
   },
   {
      "id": "230",
      "shape": "lane-edge",
      "source": "135",
      "target": "187"
   },
   {
      "id": "231",
      "shape": "lane-edge",
      "source": "137",
      "target": "164"
   },
   {
      "id": "232",
      "shape": "lane-edge",
      "source": "137",
      "target": "166"
   },
   {
      "id": "233",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3370,
         "y": 300
      },
      "attrs": {
         "body": {
            "rx": 20,
            "ry": 20
         }
      },
      // "urlClick":'///',
      "label": "来料检验",
      "parent": "7",
      "urlClick": '/qmsInformation/IncomingInspection',
      "urlQuery": ''
   },
   {
      "id": "234",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 3470,
         "y": 160
      },
      "label": "依据等级",
      "parent": "7",
   },
   {
      "id": "235",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3450,
         "y": 370
      },
      // "urlClick":'///',
      "label": "降等",
      "parent": "7",
   },
   {
      "id": "236",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3440,
         "y": 600
      },
      // "urlClick":'///',
      "label": "修补",
      "parent": "7",
   },
   {
      "id": "237",
      "shape": "lane-rect3",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3600,
         "y": 100
      },
      // "urlClick":'///',
      "label": "基础资料",
      "parent": "7",
   },
   {
      "id": "238",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3620,
         "y": 260
      },
      // "urlClick":'///',
      "label": "验布",
      "parent": "7",
   },
   {
      "id": "239",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 3730,
         "y": 50
      },
      "label": "验布OK",
      "parent": "7",
   },
   {
      "id": "240",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3730,
         "y": 380
      },
      // "urlClick":'///',
      "label": "验货异常处理",
      "parent": "7",
      "urlClick": '/qmsinformation/inspectionexceptionhandling',
      "urlQuery": ''
   },
   {
      "id": "241",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 3730,
         "y": 520
      },
      "label": "创建修补单",
      "parent": "7",
   },
   {
      "id": "242",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3730,
         "y": 670
      },
      // "urlClick":'///',
      "label": "检验异常查询",
      "parent": "7",
      "urlClick": '/qmsinformation/inspectionexceptionquery',
      "urlQuery": ''
   },
   {
      "id": "243",
      "shape": "lane-edge",
      "source": "158",
      "target": "233"
   },
   {
      "id": "244",
      "shape": "lane-edge",
      "source": "236",
      "target": "242"
   },
   {
      "id": "245",
      "shape": "lane-edge",
      "source": "242",
      "target": "241"
   },
   {
      "id": "246",
      "shape": "lane-edge",
      "source": "241",
      "target": "240"
   },
   {
      "id": "247",
      "shape": "lane-edge",
      "source": "240",
      "target": "238"
   },
   {
      "id": "248",
      "shape": "lane-edge",
      "source": "238",
      "target": "235"
   },
   {
      "id": "249",
      "shape": "lane-edge",
      "source": "238",
      "target": "236"
   },
   {
      "id": "250",
      "shape": "lane-edge",
      "source": "237",
      "target": "238"
   },
   {
      "id": "251",
      "shape": "lane-edge",
      "source": "235",
      "target": "234"
   },
   {
      "id": "252",
      "shape": "lane-edge",
      "source": "238",
      "target": "239"
   },
   {
      "id": "253",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3870,
         "y": 400
      },
      // "urlClick":'///',
      "label": "拆分记录",
      "parent": "8",
      "urlClick": '/wh/Nventory',
      "urlQuery": '4'
   },
   {
      "id": "254",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3870,
         "y": 500
      },
      // "urlClick":'///',
      "label": "拆分",
      "parent": "8",
      "urlClick": '/wh/Nventory',
      "urlQuery": '4'
   },
   {
      "id": "255",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3870,
         "y": 600
      },
      // "urlClick":'///',
      "label": "调整",
      "parent": "8",
      "urlClick": '/wh/Nventory',
      "urlQuery": '4'
   },
   {
      "id": "256",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 4030,
         "y": 750
      },
      // "urlClick":'///',
      "label": "调整记录",
      "parent": "8",
      "urlClick": '/wh/Nventory',
      "urlQuery": '4'
   },
   {
      "id": "257",
      "shape": "lane-rect3",
      "width": 130,
      "height": 35,
      "position": {
         "x": 3960,
         "y": 100
      },
      // "urlClick":'///',
      "label": "织厂APP扫描毛坯仓入库",
      "parent": "8",
   },
   {
      "id": "258",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3990,
         "y": 200
      },
      // "urlClick":'///',
      "label": "入坯布仓",
      "parent": "8",
      "urlClick": '/wh/Receipt',
      "urlQuery": '4'
   },
   {
      "id": "259",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 4010,
         "y": 300
      },
      "label": "审核",
      "parent": "8",
   },
   {
      "id": "260",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 3990,
         "y": 400
      },
      // "urlClick":'///',
      "label": "坯布仓库存",
      "parent": "8",
      "urlClick": '/wh/Nventory',
      "urlQuery": '4'
   },
   {
      "id": "261",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 4120,
         "y": 100
      },
      // "urlClick":'///',
      "label": "新增坯布出库",
      "parent": "8",
      "urlClick": '/wh/Order',
      "urlQuery": '4'
   },
   {
      "id": "262",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 4120,
         "y": 200
      },
      "label": "审核",
      "parent": "8",
   },
   {
      "id": "263",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 4120,
         "y": 300
      },
      "label": "打印",
      "parent": "8",
   },
   {
      "id": "264",
      "shape": "lane-rect3",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4120,
         "y": 400
      },
      // "urlClick":'///',
      "label": "织厂APP扫描毛坯仓出库",
      "parent": "8",
   },
   {
      "id": "265",
      "shape": "lane-rect3",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4120,
         "y": 500
      },
      // "urlClick":'///',
      "label": "染厂APP扫描毛坯仓入库",
      "parent": "8",
   },
   {
      "id": "266",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 4240,
         "y": 100
      },
      // "urlClick":'///',
      "label": "新建坯布调拨单",
      "parent": "8",
      "urlClick": '/vh/ClothWarehouseOutOfStorage',
      "urlQuery": ''
   },
   {
      "id": "267",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 4240,
         "y": 200
      },
      "label": "审核",
      "parent": "8",
   },
   {
      "id": "268",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 4240,
         "y": 300
      },
      "label": "打印",
      "parent": "8",
   },
   {
      "id": "269",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 4270,
         "y": 400
      },
      // "urlClick":'///',
      "label": "坯布调拨入库",
      "parent": "8",
      "urlClick": '/vh/GreyClothWarehouseTransferIntoStorage',
      "urlQuery": ''
   },
   {
      "id": "270",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4370,
         "y": 100
      },
      // "urlClick":'///',
      "label": "织厂APP坯布仓退库",
      "parent": "8",
   },
   {
      "id": "271",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4370,
         "y": 200
      },
      // "urlClick":'///',
      "label": "车间接收APP",
      "parent": "8",
   },
   {
      "id": "272",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4370,
         "y": 300
      },
      // "urlClick":'///',
      "label": "坯布退库查询",
      "parent": "8",
   },
   {
      "id": "273",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4520,
         "y": 100
      },
      // "urlClick":'///',
      "label": "织厂APP布笼布飞调整",
      "parent": "8",
   },
   {
      "id": "274",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4670,
         "y": 100
      },
      // "urlClick":'///',
      "label": "织厂收染厂退料",
      "parent": "8",
   },
   {
      "id": "275",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4670,
         "y": 200
      },
      // "urlClick":'///',
      "label": "织厂APP扫描",
      "parent": "8",
   },
   {
      "id": "276",
      "shape": "lane-polygonTow",
      "width": 100,
      "height": 40,
      "position": {
         "x": 4670,
         "y": 300
      },
      "label": "审核",
      "parent": "8",
   },
   {
      "id": "277",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4670,
         "y": 400
      },
      // "urlClick":'///',
      "label": "织厂收染厂退料查询",
      "parent": "8",
   },
   {
      "id": "278",
      "shape": "lane-rectTow",
      "width": 130,
      "height": 35,
      "position": {
         "x": 4840,
         "y": 100
      },
      // "urlClick":'///',
      "label": "织厂修补送染厂",
      "parent": "8",
   },
   {
      "id": "279",
      "shape": "lane-rectTow",
      "width": 140,
      "height": 35,
      "position": {
         "x": 4840,
         "y": 200
      },
      // "urlClick":'///',
      "label": "织厂APP扫染厂出库单入库",
      "parent": "8",
   },
   {
      "id": "280",
      "shape": "lane-rectTow",
      "width": 140,
      "height": 35,
      "position": {
         "x": 4840,
         "y": 300
      },
      // "urlClick":'///',
      "label": "织厂APP扫染厂出库单出库",
      "parent": "8",
   },
   {
      "id": "281",
      "shape": "lane-edge",
      "source": "239",
      "target": "257"
   },
   {
      "id": "282",
      "shape": "lane-edge",
      "source": "239",
      "target": "258"
   },
   {
      "id": "283",
      "shape": "lane-edge",
      "source": "234",
      "target": "257"
   },
   {
      "id": "284",
      "shape": "lane-edge",
      "source": "257",
      "target": "260"
   },
   {
      "id": "285",
      "shape": "lane-edge",
      "source": "258",
      "target": "259"
   },
   {
      "id": "286",
      "shape": "lane-edge",
      "source": "259",
      "target": "260"
   },
   {
      "id": "287",
      "shape": "lane-edge",
      "source": "260",
      "target": "254"
   },
   {
      "id": "288",
      "shape": "lane-edge",
      "source": "260",
      "target": "255"
   },
   {
      "id": "289",
      "shape": "lane-edge",
      "source": "254",
      "target": "253"
   },
   {
      "id": "290",
      "shape": "lane-edge",
      "source": "255",
      "target": "256"
   },
   {
      "id": "291",
      "shape": "lane-edge",
      "source": "261",
      "target": "262"
   },
   {
      "id": "292",
      "shape": "lane-edge",
      "source": "262",
      "target": "263"
   },
   {
      "id": "293",
      "shape": "lane-edge",
      "source": "263",
      "target": "264"
   },
   {
      "id": "294",
      "shape": "lane-edge",
      "source": "264",
      "target": "265"
   },
   {
      "id": "295",
      "shape": "lane-edge",
      "source": "266",
      "target": "267"
   },
   {
      "id": "296",
      "shape": "lane-edge",
      "source": "267",
      "target": "268"
   },
   {
      "id": "297",
      "shape": "lane-edge",
      "source": "268",
      "target": "269"
   },
   {
      "id": "298",
      "shape": "lane-edge",
      "source": "270",
      "target": "271"
   },
   {
      "id": "299",
      "shape": "lane-edge",
      "source": "271",
      "target": "272"
   },
   {
      "id": "300",
      "shape": "lane-edge",
      "source": "273",
      "target": "256"
   },
   {
      "id": "301",
      "shape": "lane-edge",
      "source": "274",
      "target": "275"
   },
   {
      "id": "302",
      "shape": "lane-edge",
      "source": "275",
      "target": "276"
   },
   {
      "id": "303",
      "shape": "lane-edge",
      "source": "276",
      "target": "277"
   },
   {
      "id": "304",
      "shape": "lane-edge",
      "source": "278",
      "target": "279"
   },
   {
      "id": "305",
      "shape": "lane-edge",
      "source": "279",
      "target": "280"
   },
   {
      "id": "306",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5020,
         "y": 300
      },
      // "urlClick":'///',
      "label": "拆分记录",
      "parent": "9",
      "urlClick": '/wh/Nventory',
      "urlQuery": '5'
   },
   {
      "id": "307",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5020,
         "y": 400
      },
      // "urlClick":'///',
      "label": "拆分",
      "parent": "9",
      "urlClick": '/wh/Nventory',
      "urlQuery": '5'
   },
   {
      "id": "308",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5020,
         "y": 500
      },
      // "urlClick":'///',
      "label": "调整",
      "parent": "9",
      "urlClick": '/wh/Nventory',
      "urlQuery": '5'
   },
   {
      "id": "309",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5020,
         "y": 600
      },
      // "urlClick":'///',
      "label": "调整记录",
      "parent": "9",
      "urlClick": '/wh/Nventory',
      "urlQuery": '5'
   },
   {
      "id": "311",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5160,
         "y": 100
      },
      // "urlClick":'///',
      "label": "入次布仓",
      "parent": "9",
      "urlClick": '/wh/Receipt',
      "urlQuery": '5'
   },
   {
      "id": "312",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 5160,
         "y": 200
      },
      "label": "审核",
      "parent": "9",
   },
   {
      "id": "313",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5200,
         "y": 370
      },
      // "urlClick":'///',
      "label": "次布仓库存",
      "parent": "9",
      "urlClick": '/wh/Nventory',
      "urlQuery": '5'
   },
   {
      "id": "314",
      "shape": "lane-rect",
      "width": 100,
      "height": 35,
      "position": {
         "x": 5300,
         "y": 100
      },
      // "urlClick":'///',
      "label": "新增次布仓出库",
      "parent": "9",
      "urlClick": '/wh/Order',
      "urlQuery": '5'
   },
   {
      "id": "315",
      "shape": "lane-polygon3",
      "width": 100,
      "height": 40,
      "position": {
         "x": 5300,
         "y": 200
      },
      "label": "审核",
      "parent": "9",
   },
   {
      "id": "316",
      "shape": "lane-edge",
      "source": "234",
      "target": "311"
   },
   {
      "id": "317",
      "shape": "lane-edge",
      "source": "314",
      "target": "315"
   },
   {
      "id": "318",
      "shape": "lane-edge",
      "source": "315",
      "target": "313"
   },
   {
      "id": "319",
      "shape": "lane-edge",
      "source": "311",
      "target": "312"
   },
   {
      "id": "320",
      "shape": "lane-edge",
      "source": "312",
      "target": "313"
   },
   {
      "id": "321",
      "shape": "lane-edge",
      "source": "313",
      "target": "307"
   },
   {
      "id": "322",
      "shape": "lane-edge",
      "source": "313",
      "target": "308"
   },
   {
      "id": "323",
      "shape": "lane-edge",
      "source": "307",
      "target": "306"
   },
   {
      "id": "324",
      "shape": "lane-edge",
      "source": "307",
      "target": "306"
   },
   {
      "id": "325",
      "shape": "lane-edge",
      "source": "309",
      "target": "308"
   },
]

const router = useRouter()
// router.push({ path, query: { key } })
onMounted(() => {
   const containers: any = document.querySelector('.main-base-style')
   Graph.registerNode(
      'lane',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#accfff',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 950,
               height: 30,
               fill: '#accfff',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )

   Graph.registerNode(
      'laneTow',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#cecbba',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 300,
               height: 30,
               fill: '#cecbba',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneThree',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#accfff',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 500,
               height: 30,
               fill: '#accfff',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneFour',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#ff7e79',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 600,
               height: 30,
               fill: '#ff7e79',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneFive',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#ffc000',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 200,
               height: 30,
               fill: '#ffc000',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneSix',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#ffdfcc',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 800,
               height: 30,
               fill: '#ffdfcc',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneSeven',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#accfff',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 500,
               height: 30,
               fill: '#accfff',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneEight',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#90d6ab',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 1150,
               height: 30,
               fill: '#90d6ab',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'laneNine',
      {
         inherit: 'rect',
         markup: [
            {
               tagName: 'rect',
               selector: 'body',
            },
            {
               tagName: 'rect',
               selector: 'name-rect',
            },
            {
               tagName: 'text',
               selector: 'name-text',
            },
         ],
         attrs: {
            body: {
               fill: '#FFF',
               stroke: '#99bd25',
               strokeWidth: 1,
            },
            'name-rect': {
               width: 450,
               height: 30,
               fill: '#99bd25',
               stroke: '#fff',
               strokeWidth: 1,
               x: -1,
            },
            'name-text': {
               ref: 'name-rect',
               refY: 0.5,
               refX: 0.5,
               textAnchor: 'middle',
               fontWeight: 'bold',
               fill: '#fff',
               fontSize: 12,
            },
         },
      },
      true,
   )

   Graph.registerNode(
      'lane-rect',
      {
         inherit: 'rect',
         width: 100,
         height: 60,
         attrs: {
            body: {
               strokeWidth: 1,
               stroke: '#5F95FF',
               fill: '#EFF4FF',
            },
            text: {
               fontSize: 12,
               fill: '#262626',
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'lane-rectTow',
      {
         inherit: 'rect',
         width: 100,
         height: 60,
         attrs: {
            body: {
               strokeWidth: 1,
               stroke: '#1a2560',
               fill: '#1a2560',
            },
            text: {
               fontSize: 12,
               fill: '#fff',
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'lane-rect3',
      {
         inherit: 'rect',
         width: 100,
         height: 60,
         attrs: {
            body: {
               strokeWidth: 1,
               stroke: '#ccc',
               fill: '#ccc',
            },
            text: {
               fontSize: 12,
               fill: '#fff',
            },
         },
      },
      true,
   )

   Graph.registerNode(
      'lane-polygon',
      {
         inherit: 'polygon',
         width: 80,
         height: 80,
         attrs: {
            body: {
               strokeWidth: 1,
               stroke: '#5F95FF',
               fill: '#EFF4FF',
               refPoints: '0,10 10,0 20,10 10,20',
            },
            text: {
               fontSize: 12,
               fill: '#262626',
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'lane-polygonTow',
      {
         inherit: 'polygon',
         width: 80,
         height: 80,
         attrs: {
            body: {
               strokeWidth: 1,
               stroke: '#1a2560',
               fill: '#1a2560',
               refPoints: '0,10 10,0 20,10 10,20',
            },
            text: {
               fontSize: 12,
               fill: '#fff',
            },
         },
      },
      true,
   )
   Graph.registerNode(
      'lane-polygon3',
      {
         inherit: 'polygon',
         width: 80,
         height: 80,
         attrs: {
            body: {
               strokeWidth: 1,
               stroke: '#ccc',
               fill: '#ccc',
               refPoints: '0,10 10,0 20,10 10,20',
            },
            text: {
               fontSize: 12,
               fill: '#fff',
            },
         },
      },
      true,
   )

   Graph.registerEdge(
      'lane-edge',
      {
         inherit: 'edge',
         router: {
            name: 'er',
            args: {
               offset: 'center',
            },
         },
         connector: {
            name: 'jumpover',
         },
         attrs: {
            line: {
               stroke: '#A2B1C3',
               strokeWidth: 2,
            },
         },
         label: {
            attrs: {
               label: {
                  fill: '#A2B1C3',
                  fontSize: 12,
               },
            },
         },
      },
      true,
   )

   const graph = new Graph({
      container: document.getElementById('container')!,
      connecting: {
         router: 'orth',
      },
      translating: {
         restrict(cellView: CellView) {
            const cell = cellView.cell as Node
            const parentId = cell.prop('parent')
            if (parentId) {
               const parentNode = graph.getCellById(parentId) as Node
               if (parentNode) {
                  return parentNode.getBBox().moveAndExpand({
                     x: 0,
                     y: 30,
                     width: 0,
                     height: -30,
                  })
               }
            }
            return cell.getBBox()
         },
      },
   })


   const cells: Cell[] = []
   data.forEach((item: any) => {
      if (item.shape === 'lane-edge') {
         cells.push(graph.createEdge(item))
      } else {
         cells.push(graph.createNode(item))
      }
   })
   graph.resetCells(cells)
   // graph.zoomToFit({ padding: 10, maxScale: 1 })
   setTimeout(() => {
      const elements: any = document.querySelectorAll('.x6-node')
      for (let element of elements) {
         element.addEventListener('dblclick', function () {
            const id = element.getAttribute('data-cell-id')
            for (let datas of data) {
               if (datas.id == id) {
                  if (datas.urlClick) {
                     post({
                        url:`/admin/acl/index/findPowerPermission?path=${datas.urlClick}`
                     }).then((res:any)=>{
                        if(res.code == 200){
                           router.push({ path: res.data.path, query: { key: datas.urlQuery } })
                        }else{
                           Message.error(res.message)
                        }
                     })
                  }
               }
            }
            if (id == '238') {
               const url = window.location.host;
               const protocol = window.location.protocol;
               window.location.href = protocol + '//' + url + '/index2.html?username=' + JSON.parse(sessionStorage.getItem('userLoginData') as any).username
            }
         });
      }
   }, 500)
})

</script>
<style lang="less" scoped>
#container {
   width: 5450px !important;
   height: 100% !important;
   overflow: auto;
}

#containerNow {
   width: 100% !important;
   height: 100% !important;
   overflow: auto;
}

.x6-graph-svg-stage {
   width: 100% !important;
   height: 100% !important;
}
</style>